/* 
 *  Incub - incubate your baby robot
 *  Copyright (C) 2008 Stanislaw Szymczyk
 *  e-mail: sszymczy@gmail.com   www: http://cogville.cog-lab.com
 *
 *  This file is part of Incub.
 *
 *  Incub is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  Incub is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Incub.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
 
#include "TactileSensor.h"

using std::string;

TactileSensor::TactileSensor() {
	this->x = 0;
	this->y = 0;
	this->z = 0;
	this->activation = 0;
	this->sensorShape = NULL;
}

TactileSensor::TactileSensor(double x, double y, double z) {
	this->x = x;
	this->y = y;
	this->z = z;
	this->activation = 0;
}

double TactileSensor::getX() {
	return x;
}

double TactileSensor::getY() {
	return y;
}

double TactileSensor::getZ() {
	return z;
}

double TactileSensor::getActivation() {
	return activation;
}

void TactileSensor::setActivation(double activation) {
	this->activation = activation;
}

void TactileSensor::setShape(Shape *sensorShape) {
	this->sensorShape = sensorShape;
}

Shape* TactileSensor::getShape() {
	return sensorShape;
}

void TactileSensor::setShapeIndex(string shapeIndex) {
	this->shapeIndex = atoi(shapeIndex.c_str());
}

void TactileSensor::setShapeIndex(int shapeIndex) {
	this->shapeIndex = shapeIndex;
}

int TactileSensor::getShapeIndex() {
	return this->shapeIndex;
}

void TactileSensor::setX(double x) {
	this->x = x;
}

void TactileSensor::setY(double y) {
	this->y = y;
}

void TactileSensor::setZ(double z) {
	this->z = z;
}
